package com.we823.cms.controller.manage;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;

public interface BaseController<T,ID extends Serializable> {
	
	String preAdd(Model model);
	String add(T entity, BindingResult result);
	String preEdit(ID key, Model model);
	String edit(T entity, BindingResult result);
	String delete(ID key);
	String list();
	Model getJson(HttpServletRequest request, Model model);
}
